<div id="column-left" style="background: url(/images/leftshop.png) repeat-y;padding: 20px 20px 0 20px;margin-left: -10px;">
    <span class='re2'>Выставка мастера</span><br>
<span id="nameshop" >{$shop->first_name}</span>
<span class="countrycity" >{$shop->country}, {$shop->city}</span>
<div style="text-align:center;margin:10px 0;width:187px;height:187px;">    
<img src="{$shop->photo}" alt="{$shop->login}" style="width:187px;height:187px;"> 
<br>

</div>
<div class="leftmenu">
<a href="{getsuburl route="shop" name=$shop->nameshop action='profile'}">Профиль</a>
<a href="{getsuburl route="shop" name=$shop->nameshop action='index'}" >Магазин</a>
<a href="{getsuburl route="shop" name=$shop->nameshop action='reviews'}" >Отзывы</a>
<a href="{getsuburl route="shop" name=$shop->nameshop action='policy'}" >Правила магазина</a>
 {if $authenticated}
<a href="{getsuburl route="shop" name=$shop->nameshop action='request'}">Персональный заказ</a>
                  {if $status == 'none'}
                        <form method="post" action="{geturl controller=social action=addasfriend}">
                            <input type="hidden" name="id" value="{$shop->getId()}" />
                            <input type="submit" name="addfriend" class="button green" value="Добавить в друзья" />
                        </form>
                  {elseif $status == 'request'}
                     
                    
                      <a href="{geturl route='cancelrequest' id=$shop->getId()}">Отменить заявку</a>
                  {elseif $status == 'approved'}
                    
                   
                      <a href='{geturl controller=social action=deletefromfiends}?user{$shop->getId()}'>Удалить из друзей</a>
                  {/if}   
                  <a href="{geturl route='viewdialog' id=$shop->getId()}" >Написать сообщение</a>
{/if}
 </div>  
 <div class="widget" style="margin-left: -20px;">
        <h4 class="widget-title">Категории</h4>
        <div class="widget-content">
            <div class="textwidget">
                <div class="dcjq-accordion" id="dc_jqaccordion_widget-2-item">
            <ul id="menu-cat" class="menu">
                {foreach from=$cats item=cat}
                  <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-{$cat->getId()}">
                        <a id="{$cat->getId()}" href="{getsuburl route="shop" name=$shop->nameshop}?cat={$cat->getId()}">
                           {$cat->name} ({$cat->count})  
                           <span class="dcjq-icon"></span>
                        </a>
                       
                    </li>       
                    {/foreach}
            </ul>		
        </div>
                      <br>
            </div>
        </div>
        <!-- end .widget-content-->
    </div>                 
</div>